const mongoose = require("mongoose")

const schema = new mongoose.Schema({
    name:{type: String},
    start_position:{ type: String},
    end_position:{ type: String},
    start_date:{type: Date},
    end_date:{type: Date},
    start_date_simple:{type: String},
    left:{
        type: Number,
        min:0,
        max:100
    },
    money:{
        type: Number,
    }
    
})
module.exports = mongoose.model('Flight',schema)